package com.wzs.easytobuy.mapper;

import com.wzs.easytobuy.model.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    int deleteByPrimaryKey(String id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> productPageList(String productTypeId, int skipCount, int pageSize, String productTypeName);

    int selectAllCount(String productTypeId,String productTypeName );

    int updateByPid(String productId, int newSales);

}